package com.fantsey.test.shortUrl.core;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author fx
 * @date 2024/12/17
 * @since 1.0
 */
@Data
@AllArgsConstructor
public class ResultBean<T> {
    private String code;
    private String msg;
    private T data;

    public static <T> ResultBean<T> success(T data) {
        return new ResultBean<>("200", "success", data);
    }
}
